package com.test;

import com.boot.domain.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author
 * @date 2025-07-27
 * @Description spring 基于配置文件管理bean
 *
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Car car = (Car) classPathXmlApplicationContext.getBean("car");
        System.out.println(car);
    }
}
